package cn.dengta.webapp.user.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import cn.dengta.webapp.user.model.Gender;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 启动页配置表
 *
 * @author zw
 * @since 2022-07-25
 */
@Setter
@Getter
@Accessors(chain = true)
public class StartConfig extends TimeBasedEntity {

	private static final long serialVersionUID = 1L;

	/** 名称 */
	private String name;
	/** 图片 */
	private String images;
	/** 类型： 0=图片；1=视频 */
	private Integer type;
	/** 展示时长：秒 */
	private Integer showTime;
	/** 链接类型：0=H5 */
	private Integer linkType;
	/** 活动链接 */
	private String linkUrl;
	/** 开启时间 */
	private Date beginTime;
	/** 结束时间 */
	private Date endTime;
	/** 性别：0=女；1=男 */
	private Gender gender;
	/** 语言，多个逗号拼接 */
	private String language;
	/** 客户端 */
	private String client;
	/** 添加人 */
	private Long addUserId;
	/** 可见状态：3=全部可见；2=商家可见；1=平台可见；0=全部不可见 */
	private Integer state;

	public static final String ID = "id";
	public static final String SHOW_TIME = "show_time";
	public static final String NAME = "name";
	public static final String IMAGES = "images";
	public static final String TYPE = "type";
	public static final String LINK_TYPE = "link_type";
	public static final String LINK_URL = "link_url";
	public static final String BEGIN_TIME = "begin_time";
	public static final String END_TIME = "end_time";
	public static final String GENDER = "gender";
	public static final String LANGUAGE = "language";
	public static final String CLIENT = "client";
	public static final String ADD_USER_ID = "add_user_id";
	public static final String STATE = "state";

}
